{include file='../Public/header.html'}
{literal}
<script>
	//定义页面载入事件
	$(function(){
		//获取btnAdd按钮
		$('#btnAdd').bind('click',function(){
			// 设置“添加文章”链接
			window.location.href = 'index.php?p=Back&c=SinglePage&a=add';
		});
	});
</script>
{/literal}
<div class="admin">
	<form action="index.php?p=Back&c=SinglePage&a=del" method="POST">
    <div class="panel admin-panel">
    	<div class="panel-head"><strong>相册列表</strong></div>
      <!--   <div class="padding border-bottom">        
            <input type="button" id="btnAdd" class="button button-small border-green" value="添加单页" />
        </div> -->
        <table class="table table-hover">
        {foreach from=$thumbInfo item='row'}
        	<tr>
            <img src="/Uploads/thumb/{$row.thumb|truncate:8:NULL}/{$row.thumb}" alt="">
            </tr>
        {/foreach}
            <!-- {foreach from=$pageInfo item='row'}
            <tr>
                <td>{$row.page_id}</td>
                <td>{$row.title}</td>
                <td>
                    <a class="button border-blue button-little" href="index.php?p=Back&c=Single&a=edit&page_id={$row.page_id}">修改</a> 
                    <a class="button border-yellow button-little" href="index.php?p=Back&c=Single&a=del&page_id={$row.page_id}" onclick="return confirm('确定要删除吗?');" >删除</a>
                </td>
            </tr>
            {/foreach} -->
        </table>

    </div>
    </form>
    <br />
    <p class="text-right text-gray" style="float:right">基于<a class="text-gray" target="_blank" href="#">MVC框架</a>构建</p>
</div>
</body>
</html>